package com.itbaizhan.zookeeper.rmi.service;
import com.itbaizhan.zookeeper.rmi.common.HellloService;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

public class HelloSreviceimpl extends UnicastRemoteObject implements HellloService {
    //添加构造方法
    protected HelloSreviceimpl() throws RemoteException {
    }

    @Override
    public String sayHello(String name) throws RemoteException {
//        return "Hello";
        return String.format("Hello %s !",name);
    }
}
